package com.xwaf.platform.web.controller.x.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.xwaf.platform.common.api.CommonResponse;
import com.xwaf.platform.common.api.enums.GirlEnums;
import com.xwaf.platform.system.api.service.hander.GirlHanderService;

import io.swagger.annotations.Api;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@ApiIgnore
@Api(tags = "Factory", hidden = true)
@RequestMapping(value = "/x/factory")
public class FactoryController {

	@Autowired
	private GirlHanderService girlHanderService;

	@GetMapping("/testFactory")
	@ResponseBody
	public CommonResponse testFactory() throws Exception {
		System.out.println(girlHanderService.createGirl(GirlEnums.COOK.getCode()));
		System.out.println(girlHanderService.createGirl(GirlEnums.TRAVEL.getCode()));
		return CommonResponse.createCommonResponse();
	}

	public static void main(String[] args) {
		System.out.println(GirlEnums.COOK.getCode());
	}
}
